/**
 * File: ReadEntryWriter.java
 * Created by: mhaimel
 * Created on: 18 Aug 2009
 * CVS:  $Id: ReadEntryWriter.java,v 1.1 2009/08/27 14:52:44 mhaimel Exp $
 */
package uk.ac.ebi.curtain.util.io;

import java.io.PrintWriter;

/**
 * @author mhaimel
 *
 */
public class ReadEntryWriter extends AbstractWriter<ReadEntryBean> {

	public ReadEntryWriter(PrintWriter out) {
		super(out);
	}

	/* FileId | Id | Strand | LocalFilePos */
	@Override
	protected void _doWrite(ReadEntryBean bean) {
		writeColumn(bean.getFileId().toString());
		writeColumn(bean.getId());
		getWriter().print(bean.getStrand().getSymbol());
		printSep();
		_write(bean.getLocalFilePos().toString());
		getWriter().println();
	}
}
